<div id="chat">
    <div>Online Follower (<?php echo count($user["follower"]) ?>)</div>
    <?php foreach($user["follower"] as $follower): ?>
        <div class="user_online">
            <a href="<?php echo BASE_PATH; ?>/users/view/<?php echo $follower['User']['id'] ?>"><?php echo $follower['User']['name'] ?></a>
            <a href="#" onclick="showChat(<?php echo $follower['User']['id'] ?>);">(chat)</a>
        </div>
    <?php endforeach ?>
    <div>Online Following (<?php echo count($user["following"]) ?>)</div>
    <?php foreach($user["following"] as $following): ?>
        <div class="user_online">
            <a href="<?php echo BASE_PATH; ?>/users/view/<?php echo $following['User']['id'] ?>"><?php echo $following['User']['name'] ?></a>
            <a href="#" onclick="showChat(<?php echo $following['User']['id'] ?>)">(chat)</a>
        </div>
    <?php endforeach ?>
</div>



